bomb_num = 2

"""
一些全局变量
"""

def get_bomb_num():
    global bomb_num
    return bomb_num

def use_bomb():
    global bomb_num
    bomb_num -= 1


def add_bomb():
    global bomb_num
    bomb_num += 1

invincible = False
def get_invincible():
    global invincible
    return invincible

def set_invincible(bool):
    global invincible
    invincible = bool

def set_user_name(name:str):
    global user_name
    user_name = name

def get_user_name():
    global user_name
    return user_name
